﻿namespace Repositories.VM;

/// <summary>
/// 用户
/// </summary>
public class UserVM
{
    /// <summary>
    /// 用户主键
    /// </summary>
    public int Id { get; set; }
    /// <summary>
    /// 用户账号
    /// </summary>
    public string Account { get; set; }
    /// <summary>
    /// 姓名
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 角色编号
    /// </summary>
    public int RoleId { get; set; }
    /// <summary>
    /// 角色数组
    /// </summary>
    public List<int> Roles { get; set; }
    /// <summary>
    /// 角色名称
    /// </summary>
    public string RoleName { get; set; }
    /// <summary>
    /// 类型 0-其他 1-教职工 2-学生
    /// </summary>
    public int Type { get; set; }
    /// <summary>
    /// 性别 0 未知 1 男 2 女
    /// </summary>
    public int Gender { get; set; }
    /// <summary>
    /// 头像
    /// </summary>
    public string? Avatar { get; set; }
    /// <summary>
    /// 0 禁用 1 启用
    /// </summary>
    public int Enable { get; set; }
    /// <summary>
    /// 是否管理员
    /// </summary>
    public bool IsAdmin { get; set; }
    /// <summary>
    /// 部门/班级编号
    /// </summary>
    public string? OrgCode { get; set; }
    /// <summary>
    /// 部门/班级名称
    /// </summary>
    public string? OrgName { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    public int Userid { get; set; }
    /// <summary>
    /// Hub连接Id
    /// </summary>
    public string ConnectionId { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
}
